// 部门消息
// 引入express
const express = require('express')
// 使用express框架的路由
const router = express.Router()
// 导入department_msg路由处理模块
const departmentHandler = require('../route_hander/department.js')


router.post('/getdepartTree', departmentHandler.getdepartTree)
router.post('/getdepartmentList', departmentHandler.getdepartmentList)
router.post('/getDepartmentListLength', departmentHandler.getDepartmentListLength)
router.post('/updatedepartment', departmentHandler.updatedepartment)
router.post('/updatedepartmentManager', departmentHandler.updatedepartmentManager)
router.post('/getdepartmentListByName', departmentHandler.getdepartmentListByName)

//暴漏router对象
module.exports = router
